import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { h } from 'vue';
import { Checkbox } from 'ant-design-vue';
export const columns: BasicColumn[] = [
  {
    title: '',
    dataIndex: 'roleCodes',
    width: 50,
    ellipsis: true,
    resizable: false,
    customRender: ({ record }) => {
      return h(Checkbox, {
        checked: record['isRoleSelected'],
        onChange: (e) => {
          record['isRoleSelected'] = e.target.checked;
        },
      });
    },
  },
  {
    title: '角色',
    dataIndex: 'roleDesc',
    width: 100,
    ellipsis: true,
    resizable: false,
  },
];

export const formSchema: FormSchema[] = [];
